package com.getpebble.android.common.framework.install.app;

import com.getpebble.android.common.framework.install.PebbleManifest;
import com.getpebble.android.common.framework.install.PebbleManifest.ResourceInfo;

public class AppManifest extends PebbleManifest {
    private ApplicationInfo application;
    private WorkerInfo worker;

    public static abstract class ResourceInfoWithSdkVersion extends ResourceInfo {
    }

    public static class ApplicationInfo extends ResourceInfoWithSdkVersion {
    }

    public static class WorkerInfo extends ResourceInfoWithSdkVersion {
    }

    public ApplicationInfo getAppInfo() {
        return this.application;
    }

    public WorkerInfo getWorker() {
        return this.worker;
    }

    public boolean hasWorker() {
        return getWorker() != null;
    }
}
